#ifndef LABEL_H_
#define LABEL_H_

#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include "../Widget.h"

class Label: public Widget {
public:
	Label(std::string message, Widget* parent, int x, int y);

	void createLabelSurfaces();

	virtual void handleEvent(Event event);

	virtual void resolve();

	virtual void showOn(SDL_Surface* surface);

	virtual ~Label();

private:
	std::string message;
	TTF_Font* font;
	SDL_Color textColor;
	SDL_Surface* messageSurface;

};

#endif /* LABEL_H_ */
